package Chapter08.extend_;

/**
 * @author 杨森
 * @date 2022年09月20日 21:42
 */
public class Extends01 {
    public static void main(String[] args) {
        final Pupil pupil = new Pupil();
        final Graduate graduate = new Graduate();

        pupil.setName("小明");
        pupil.setAge(3);
        pupil.setScore(100);
        graduate.setName("大明");
        graduate.setAge(20);
        graduate.setScore(90);
        pupil.showInfo();
        graduate.showInfo();

    }
}
